home *** CD-ROM | disk | FTP | other *** search
/ Products & Services for NeXT / Products & Services for NeXT.iso / AlembicDemo.app / Axone / CFunction / defs.h next >
C/C++ Source or Header  |  1994-03-06  |  3KB  |  121 lines

  1. #ifndef _defs_h
  2. #define _defs_h
  3.  
  4. /*
  5. #ifndef NULL
  6. #define NULL 0
  7. #endif
  8. */
  9.  
  10. /*
  11.  * supprimer le commentaire pour utiliser Improv ( + modif dans les nibfiles )
  12.  *    #define USE_IMPROV
  13.  */
  14.  
  15. /* defintions realisees auparavant dans reseau_de_neurones.h */
  16.  
  17. #define    EDIT                0
  18. #define    LEARNING            1
  19. #define    INTERRUPTED_LEARN    2
  20. #define    INTERRUPTING_LEARN    3
  21.  
  22. #define VERSION        7
  23. #define VERSION5    5
  24. #define VERSION6    6
  25. #define VERSION7    7
  26. #define PREFIXE     "RESEAUX_DE_NEURONES"
  27.  
  28. /* NBMAXHIDDEN est le nombre max de couche de neurone cachee
  29.  * NBNEURMIN est le nombre minimal de neurone par couche
  30.  */
  31.  
  32. #define    NBMAXHIDDEN    3
  33. #define    NBNEURMIN    1
  34.  
  35. #define MAX_NBSTEP    100
  36. #define MIN_NBSTEP    1
  37. #define DEF_NBSTEP    1
  38.  
  39. #define MAX_NBEPOCH    1000000
  40. #define MIN_NBEPOCH    1
  41. #define DEF_NBEPOCH    1000
  42.  
  43.  
  44.  
  45. /* definitions pour la structure msg_err */
  46.  
  47. #define    MAX_ERR            (200*MAX_NBSTEP)
  48. #define    MSG_ERR_TYPE    1
  49. #define    MSG_BASE        (sizeof(int)*4)
  50. #define    MSG_MAX            (sizeof(int)*4 + (sizeof(float)*MAX_ERR))
  51.  
  52.  
  53. /* definition pour NeuronInspector : */
  54. #define MAXWEIGHT    20.0
  55. #define MINWEIGHT    -20.0
  56.  
  57.  
  58.  
  59. /* definition pour data.c et data.h + ... */
  60.  
  61. #define MAX_DATA    20000
  62. #define    MAX_INOUT    200
  63. #define MAX_NEURON    200        /* nombre maximum de neurones par couches */
  64.  
  65. #define BORNE_SIG    4.0
  66. #define BORNE_TANH    2.0
  67.  
  68. #define    LINEAR1            0
  69. #define    SIGMOIDE        1
  70. #define    LINEAR2            2
  71. #define    TANGENTE_HYPERB    3
  72.  
  73.  
  74.  
  75. /* definitions realisee auparavant dans xdr_routines.h */
  76.  
  77. #define AXONE_SERVER_PROG     0x30000000    /* numero du programme */
  78. #define AXONE_SERVER_VERS1    1            /* version du programme */
  79.  
  80. #define AFN_FILS_PROG    0x30000001
  81. #define AFN_FILS_VERS1    1
  82.  
  83. #define NULL_PROC    0
  84.  
  85. /* fonctions offertes par le serveur */
  86. #define DEMANDE    1            /* demande un ps pour les calculs */
  87.  
  88. /* fonctions offertes par les fils du serveur */
  89. #define RECOIT_RESEAU    2    /* recoit le reseau a calculer */
  90. #define RECOIT_DONNEES    3    /* recoit les donnees associee au reseau */
  91. #define CALCUL_EPOQUE    4    /* calcule une epoque */
  92. #define RENVOIE_RESEAU    5    /* renvoie le dernier reseau */
  93. #define LIBERE    6    /* libere le fils utilise pour ce reseau */
  94.  
  95.  
  96. /* fonctions offertes par le fils de AFN */
  97. #define RECOIT_ERREUR    1
  98.  
  99. /* definitions utilises par ImprovIOManager et MesaIOManager */
  100. #define ADD_INPUT        0
  101. #define ADD_OUTPUT        1
  102. #define MODIFY_INPUT    2
  103. #define MODIFY_OUTPUT    3
  104. #define SELECT_MASK        4
  105.  
  106. typedef struct _arg_epoque
  107. {
  108.     int    nb_epoques ;
  109.     int    attente ;
  110.  
  111.     int    best ;    /* un flag qui indique si on conserve le meilleur reseau */
  112.     int    shake ;    /* un flag qui indique si on effectue un shake */
  113.     float    range1 ;    /* interval initial */
  114.     float    range2 ;    /* interval final */
  115.     int    nbshake ;    /* nombre de shake pour passer de range1 a range2 */
  116.     int    step ;    /* nombre d’epoques entre deux shake */
  117.     int    first_epoque ;    /*¨indice de la premiere epoque */
  118.     int    bestPeriod ;    /*¨period du keep Best */
  119. }    arg_epoque;
  120.  
  121. #endif